﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace PHMEE.Entities.DaqInfo.TdDevices
{

    /// <summary>
    /// TD设备类型
    /// </summary>
    public class TdDeviceType : Entity<Guid>
    {
        /// <summary>
        /// 超级表名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 超级表描述
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 绑定的数据库ID
        /// </summary>
        public Guid DatabaseId { get; set; }

        /// <summary>
        /// 绑定的数据库导航属性
        /// </summary>
        public TdDatabase Database { get; set; }

        /// <summary>
        /// 超级表的属性
        /// </summary>
        public ICollection<TdDeviceAttribute> Attributes { get; set; }

        /// <summary>
        /// 超级表的子表
        /// </summary>
        public ICollection<TdDeviceInstance> Instances { get; set; }

        public TdDeviceType(Guid id)
        {
            Id = id;
        }
    }

}
